package com.hsytech.dijiebao.person.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {

	public DBHelper(Context context) {
		super(context, "dijiebao", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {

		db.execSQL("CREATE TABLE " + "INFORMATION" + //
				"(" + "id" + " NVARCHAR(50) PRIMARY KEY ,"//
				+ "carorhotle" + " NVARCHAR(50)," //
				+ "content" + " NVARCHAR(50),"//
				+ "status" + " NVARCHAR(50))");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
		db.execSQL("DROP TABLE IF EXISTS " + "INFORMATION");

	}

}
